Skip to content

Display first-run welcome message to users#48

Merged
yiwang merged 4 commits into
mainfrom
copilot/fix-welcome-message-display
Feb 19, 2026
Merged

Display first-run welcome message to users#48
yiwang merged 4 commits into
mainfrom
copilot/fix-welcome-message-display

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 19, 2026

The welcome message was defined and included in system context (LLM-side) but never displayed to users in any interface.

Changes

Core API (localgpt-core/agent/mod.rs):

  • Expose FIRST_RUN_WELCOME constant as public
  • Add Agent::is_brand_new() and AgentHandle::is_brand_new() methods

CLI & Desktop (localgpt-cli):

  • Print welcome after status line in chat mode
  • Send welcome as SystemMessage to desktop GUI worker

Server (localgpt-server):

  • Add is_brand_new field to HTTP /api/status response
  • Display detailed welcome in web UI when flag is true
  • Send HTML-formatted welcome in Telegram bot after session creation

Mobile (localgpt-mobile):

  • Add is_brand_new() method to LocalGPTClient
  • Add get_welcome_message() standalone function for iOS/Android

Example

// In CLI chat.rs after session creation:
if agent.is_brand_new() {
    println!("{}\n", localgpt_core::agent::FIRST_RUN_WELCOME);
}

The is_brand_new flag is set during MemoryManager initialization when all key files (MEMORY.md, HEARTBEAT.md, SOUL.md) are missing, ensuring the welcome appears only on the actual first run.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • cdn.pyke.io
    • Triggering command: /home/REDACTED/work/localgpt/localgpt/target/debug/build/ort-sys-4fb9e0debc451c7c/build-script-main /home/REDACTED/work/localgpt/localgpt/target/debug/build/ort-sys-4fb9e0debc451c7c/build-script-main --hash-style=gnu --as-needed -dynamic-linker /lib64/ld-linux-x86-64.so.2 -pie /build_script_build-d7337309cbac776c.build_script_build.ca7b3ca7c720d6a6-cgu.0.rcfg(feature, values()) /build_script_build-d7337309cbac776c.cggvyirllky4x4tpfu3nz47xu.rcgu.o -fuse-ld=lld -z 64-REDACTED-linux-gnu/lib/libstd-6455781cbbf0c25c.rlib 64-REDACTED-linux-gnu/lib/libpanic_unwind-9ea6681249c86daa.rlib 64-REDACTED-linux-gnu/lib/libobject-49a13cd1c17ee472.rlib 64-REDACTED-linux-gnu/lib/libmemchr-80c0d200aa1c5414.rlib 64-REDACTED-linux-gnu/lib/libaddr2line-ed0d1665fe189213.rlib 64-REDACTED-linux-gnu/lib/libgimli-82f3ba019c4b6344.rlib 64-REDACTED-linux-gnu/lib/libcfg_if-b8a9625d47e2e3c0.rlib 64-REDACTED-linux-gnu/lib/librustc_demangle-c04f2c50d366d1be.rlib 64-REDACTED-linux-gnu/lib/libstd_detect-27563b08da68095e.rlib 64-REDACTED-linux-gnu/lib/libhashbrown-77a21fecb79c0678.rlib (dns block)
    • Triggering command: /home/REDACTED/work/localgpt/localgpt/target/debug/build/ort-sys-032f84643275bd6f/build-script-main /home/REDACTED/work/localgpt/localgpt/target/debug/build/ort-sys-032f84643275bd6f/build-script-main -I /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-5ed3bba6fd2d6308-z -I oniguruma/src /out/libonig.a /out/a445302c6d3dcb51-regexec.o /out/a445302c6d3dcb51-regerror.o /out/a445302c6d3dcb51-regparse.o /out/a445302c6d3dcb51-regext.o /out/a445302c6d3dcb51-regcomp.o /out/a445302c6d3dcb51-reggnu.o /out/a445302c6d3dcb51-regenc.o /out/a445302c6d3dcb51-regsyntax.o /out/a445302c6d3dcb51-regtrav.o /out/a445302c6d3dcb51-regversion.o /out/a445302c6d3dcb51-st.o /out/a445302c6d3dcb51-onig_init.o /out/a445302c6d3dcb51-unicode.o /out/a445302c6d3dcb51-ascii.o (dns block)
    • Triggering command: /home/REDACTED/work/localgpt/localgpt/target/debug/build/ort-sys-0cb9c8be1593958c/build-script-main /home/REDACTED/work/localgpt/localgpt/target/debug/build/ort-sys-0cb9c8be1593958c/build-script-main /home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/out/a445302c6d3dcb51-regversion.o /tmp/cc954peW.s -c ef18�� ef1816382bd16b0d-g /out -1949cf8c6b5b557-fno-omit-frame-pointer /index.crates.iocc -1949cf8c6b5b557-O0 /index.crates.io-ffunction-sections -1949cf8c6b5b557-fdata-sections /out/a445302c6d3dcb51-unicode_fold2_key.o f/aws-lc-sys-0.3-g /index.crates.io-gdwarf-4 f/aws-lc-sys-0.3-fno-omit-frame-pointer _party/s2n-bignuas f/aws-lc-sys-0.3-W pointer f/aws-lc-sys-0.3/home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/home/REDACTED/work/localgpt/localgpt/target/debug/build/onig_sys-ef1816382bd16b0d/out/a445302c6d3dcb51-regext.o (dns block)

If you need me to access, download, or install something from one of these locations, you can either:


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 3 commits February 19, 2026 07:06
Co-authored-by: yiwang <142937+yiwang@users.noreply.github.com>
Co-authored-by: yiwang <142937+yiwang@users.noreply.github.com>
Co-authored-by: yiwang <142937+yiwang@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix display issues with first time welcome message Display first-run welcome message to users Feb 19, 2026
Copilot AI requested a review from yiwang February 19, 2026 07:14
@yiwang yiwang marked this pull request as ready for review February 19, 2026 07:21
@yiwang yiwang merged commit dd217d1 into main Feb 19, 2026
5 checks passed
@yiwang yiwang deleted the copilot/fix-welcome-message-display branch February 19, 2026 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants